<!DOCTYPE html>
<html lang="zh-CN" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link type="text/css" rel="stylesheet" th:href="@{/css/main.css}" />
</head>
<body class="goodsBody">
<div class="tohome">
    <a th:href="@{'/wujin/list'}">回到主页</a>
</div>
<form action="/assist/formpitch" th:action="@{/assist/formpitch}" method="POST">

    商品ID：
    <input type="text" name="goods_id" th:value="${pitchModel.goods_id}" readonly="readonly">
    <br>
    孔距描述：
    <input type="text" name="pitch_name" placeholder="请录入孔距描述" >
    <br>

    <input type="submit" value="提交" >
</form>

<br>
<br>
<br>

<table border="1">
    <thead>
    <tr>
        <td>商品ID</td>
        <td>孔距ID</td>
        <td>孔距描述</td>
    </tr>
    </thead>
    <tbody>
    <tr th:if="${pitchModel.pitchList.size()} eq 0">
        <td colspan="3">没有商品孔距信息！</td>
    </tr>
    <tr th:each="pitch:${pitchModel.pitchList}">
        <td th:text="${pitch.goods_id}"></td>
        <td th:text="${pitch.pitch_id}"></td>
        <td th:text="${pitch.pitch_name}"></td>

        <td >
            <a th:href="@{'/assist/deletepitch?pitch_id='+${pitch.pitch_id}+'&goods_id='+${pitch.goods_id}}">删除</a>

        </td>
    </tr>
    </tbody>
</table>

</body>
</html>